#pragma once

#include <Windows.h>
#include <d3d9.h>      // Main Direct3D header
#include <d3dx9.h>	
#include <string>
#include <iostream>
#include <fstream>

const int WindowWidth = 1280;
const int WindowHeight = 720;

const int ScreenWidth = 1920;
const int ScreenHeight = 1080;

bool FullScreen = false;

const wstring MaterialPath = L"C:\\Users\\jeremi\\Desktop\\maple\\Maple\\";

LPCWSTR MultiCharToUniChar(char* mbString)
{
	int len = 0;
	len = (int)strlen(mbString) + 1;
	wchar_t *ucString = new wchar_t[len];
	mbstowcs(ucString, mbString, len);
	return (LPCWSTR)ucString;
}

template <class T>
std::string ToString(const T & t)
{
   std::ostringstream s;
   s << t;
   return s.str();
}


int ToDegrees(float radians)
{
	return (int)(180.0f/D3DX_PI*radians);
}